import React from 'react';
import BaseComponent from "../base/BaseComponent";

export default class Demo extends BaseComponent {

    // eslint-disable-next-line no-useless-constructor
    constructor(props) {
        super(props);
        // console.log(this.PushPage);
    }
    state = {

    };

    componentDidMount() {

    };

    pushPage(){
        console.log(this,'this')
        this.PushPage('Home')
    }

    render() {
        return (
            <div>
                <button onClick={()=>this.pushPage()}>跳转</button>
            </div>
        )
    }
}
